package models

import "gorm.io/gorm"

type Category struct{
	gorm.Model
	
	Name string `form:"name" gorm:"type:varchar(20);not null;comment:分类名" valid:"Required;MinSize(1)" json:"name"`
	Num int `form:"num" gorm:"type:tinyint(3);default 0;comment:分类的文章数量" json:"num"`
}